package com.wechat.DAO;

import com.wechat.pojo.Message;

import java.util.List;

public interface MessageDAO {
    public abstract Message query(long M_Time);
    public abstract Boolean add(Message message);
    public abstract Boolean sendOk(long M_Time);
    public abstract Boolean receiveOk(long M_Time);
    public abstract Boolean delete(Message message);
    public abstract Boolean deleteByTime(Long M_Time);
    public abstract List<Message> getNewMessagesByUsername(String username);
    public abstract List<Message> getAllMessagesByUsername(String username);
    }
